export const formColumn = [
	{
		component: "el-input",
		label: "学员姓名",
		prop: "studentName",
	},
	{
		component: "el-input",
		label: "家长电话",
		prop: "familyPhone",
	},
	{
		component: "el-date-picker",
		label: "交易日期",
		prop: "deal",
		props: {
			type: "daterange",
		},
	},
	{
		hide: true,
		component: "el-input",
		label: "年份",
		prop: "year",
	},
	{
		hide: true,
		component: "el-select",
		label: "报名方式",
		prop: "appllication",
		options: [
			{
				label: "正常报名",
				value: "1",
			},
			{
				label: "转班报名",
				value: "2",
			},
		],
	},
	{
		hide: true,
		component: "el-select",
		label: "分校",
		prop: "school",
		options: [],
	},
	{
		hide: true,
		component: "el-select",
		label: "所属校区",
		prop: "schoolArea",
		props: {
			props: {
				checkStrictly: true,
			},
		},
		options: [],
	},
	{
		hide: true,
		component: "el-select",
		label: "学员班级状态",
		prop: "classState",
		options: [
			{
				label: "正常",
				value: "1",
			},
			{
				label: "转班",
				value: "2",
			},
			{
				label: "退费",
				value: "3",
			},
		],
	},
	{
		hide: true,
		component: "el-date-picker",
		label: "录入时间",
		prop: "entering",
		props: {
			type: "daterange",
		},
	},
	{
		hide: true,
		component: "el-select",
		label: "学期",
		prop: "term",
		options: [
			{
				label: "春季",
				value: "1",
			},
			{
				label: "暑假",
				value: "2",
			},
			{
				label: "秋季",
				value: "3",
			},
			{
				label: "寒假",
				value: "4",
			},
			{
				label: "无学期",
				value: "5",
			},
		],
	},
	{
		hide: true,
		component: "el-input",
		label: "授课老师",
		prop: "teacher",
	},
	{
		hide: true,
		component: "el-select",
		label: "支付状态",
		prop: "payState",
		options: [
			{
				label: "已支付",
				value: "1",
			},
			{
				label: "未支付",
				value: "2",
			}
		],
	},
	{
		hide: true,
		component: "el-input",
		label: "课程顾问",
		prop: "courseTeacher",
	},
	{
		hide: true,
		component: "el-select",
		label: "开票状态",
		prop: "gbillState",
		options: [
			{
				label: "已开票",
				value: "1",
			},
			{
				label: "未开票",
				value: "2",
			},
			{
				label: "已回收",
				value: "3",
			},
			{
				label: "已红冲",
				value: "4",
			},
			{
				label: "已转出",
				value: "5",
			},
			{
				label: "开票中",
				value: "6",
			},
			{
				label: "开票失败",
				value: "7",
			},
		]
	},
	{
		hide: true,
		component: "el-select",
		label: "0元报名",
		prop: "zero",
		options: [
			{
				label: "是",
				value: "1",
			},
			{
				label: "否",
				value: "2",
			}
		],
	},
	{
		hide: true,
		component: "el-select",
		label: "交易来源",
		prop: "transactionSource",
		options: [],
	},
	{
		hide: true,
		component: "el-input",
		label: "学科",
		prop: "subject",
	},
	{
		hide: true,
		component: "el-input",
		label: "资源负责人",
		prop: "principal",
	},
	{
		hide: true,
		component: "el-select",
		label: "是否为转介绍",
		prop: "referral",
		options: [
			{
				label: "是",
				value: "1",
			},
			{
				label: "否",
				value: "2",
			}
		],
	},
	{
		hide: true,
		component: "el-input",
		label: "转介绍员工",
		prop: "principal",
	},
	{
		hide: true,
		component: "el-input",
		label: "转介绍学员",
		prop: "principalStudent",
	},
	{
		hide: true,
		component: "el-input",
		label: "转介绍部门",
		prop: "department",
	},
	{
		hide: true,
		component: "el-input",
		label: "转介绍岗位",
		prop: "post",
	},
	{
		hide: true,
		component: "el-select",
		label: "是否本部门老师招生",
		prop: "departmentTeacher",
		options: [
			{
				label: "是",
				value: "1",
			},
			{
				label: "否",
				value: "2",
			}
		],
	},
];

export const column = [
	{
		label: "学员姓名",
		prop: "studentName",
		width: "150",
	},
	{
		label: "学期",
		prop: "semester",
		width: "150",
	},
	{
		label: "交易来源",
		prop: "source",
		width: "120",
	},
	{
		label: "是否为转介绍",
		prop: "memory",
		width: "120",
	},
	{
		label: "转介绍学员",
		prop: "recommendStudentName",
		width: "150",
	},
	{
		label: "转介绍员工",
		prop: "recommendStaffName",
		width: "150",
	},
	{
		label: "转介绍部门",
		prop: "recommendDepartment",
		width: "150",
	},
	{
		label: "转介绍岗位",
		prop: "recommendPost",
		width: "220",
	},
	{
		label: "是否本部门老师招生",
		prop: "address",
		width: "150",
	},
	{
		label: "资源负责人",
		prop: "person",
		width: "150",
	},
	{
		label: "班级原价",
		prop: "originalPrice",
		width: "150",
	},
	{
		label: "报名价格",
		prop: "originalPrice",
		width: "150",
	},
	{
		label: "班级实缴金额",
		prop: "paidIn",
		width: "150",
	},
	{
		label: "班级课次",
		prop: "classTimes",
		width: "150",
	},
	{
		label: "报读课次",
		prop: "enrollTimes",
		width: "150",
	},
	{
		label: "上课次数",
		prop: "classesNum",
		width: "150",
	},
	{
		label: "课程实缴",
		prop: "paidIn",
		width: "150",
	},
	{
		label: "商品实缴",
		prop: "type",
		width: "150",
	},
	{
		label: "支付状态",
		prop: "orderStatus",
		width: "150",
	},
	{
		label: "报名方式",
		prop: "type",
		width: "150",
		props: {
			formatter: (row) => ['--', '正常报名', '转班报名'][row.type] || '--',
		},
	},
	{
		label: "学员班级状态",
		prop: "classState",
		width: "150",
		props: {
			formatter: (row) => ClassState_Map[row.classState] || '--',
		},
	},
	{
		label: "签约状态",
		prop: "signStatus",
		width: "150",
	},
	{
		label: "新老生",
		prop: "srcSchool",
		width: "150",
	},
	{
		label: "录入时间",
		prop: "entering",
		width: "150",
	},
	{
		label: "操作人",
		prop: "srcSchool",
		width: "150",
	},
	{
		label: "创建时间",
		prop: "srcSchool",
		width: "150",
	},
];
